/**乐谱接口 */
import request from "@/utils/request";
// 获取乐谱列表接口
export function getMusicScoreList(limit, page) {
    return request({
        url: `/api/v1/musicScore/getMusicScoreList/${limit}/${page}`,
        method: "get",
    });
}
// 发布乐谱
export function publishMusicScore(data) {
    return request({
        url: `/api/v1/musicScore/publishMusicScore`,
        method: "post",
        data,
    });
}
// 删除乐谱
export function deleteMusicScore(data) {
    console.log(data)
    return request({
        url: `/api/v1/root/musicScore/deleteMusicScore`,
        method: "delete",
        data,
    });
}
// 编辑乐谱
export function EditMusicScore(data) {
    return request({
        url: `/api/v1/root/musicScore/alter`,
        method: "put",
        data,
    });
}
// 模糊查询乐谱x
export function SearchMusicScores(fuzzyTitle, limit, page) {
    return request({
        url: `/api/v1/musicScore/query/fuzzy/${fuzzyTitle}/${limit}/${page}`,
        method: "get",
    });
}
// 刷新乐谱不改变浏览量
export function RefreshMusicScore(id) {
    return request({
        url: `/api/v1/musicScore/refreshMusicScore/${id}`,
        method: "get",
    });
}
// 批量删除乐谱
export function BatchDeleteMusicScore(data) {
    return request({
        url: `/api/v1/root/musicScore/batch/deleteMusicScore`,
        method: "delete",
        data
    });
}
// 获取已删除列表
export function getMusicScoreDeleteList(limit, page) {
    return request({
        url: `/api/v1/root/musicScore/deleteList/${limit}/${page}`,
        method: "get",
    });
}